<%@ taglib uri="/struts-tags" prefix="s" %>  
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Market Product CRUD</title>
</head>
<body>
<p><strong><h2>Market Product CRUD</h2></strong></p>
<s:a action="initRegisterProduct">Add</s:a>
<table width="345" border="0" cellpadding="2" cellspacing="2">
  <tr bgcolor="#CCCCCC">
    <td>&nbsp;</td>
    <td><strong>Name </strong></td>
    <td><strong>Price </strong></td>
    <td><strong>Expired Date </strong></td>
    <td><strong>Category  </strong></td>
    <td><strong>Status</strong></td>
  </tr>
  <s:iterator value="products">
  <tr>
    <td><s:a action="editProduct-%{id}" method="edit">Edit</s:a>&nbsp;
        <s:a action="deleteProduct-%{id}">Delete</s:a>
     </td>
    <td><s:property value="name"/></td>
    <td><s:property value="price"/></td>
    <td><s:date name="expiredDate" format="dd/MM/yyyy"/></td>
    <td><s:property value="category"/></td>
    <td><s:property value="status"/></td>
  </tr>
  </s:iterator>
</table>
<p>&nbsp;</p>
</body>
</html>